﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ECommerce.Factory.WebControls.Productos
{
    public static class WebPackage
    {
        public static void Load(ECommerce.WebControls.Productos.WebPackage WebPackage, ECommerce.Model.Productos.Package Package)
        {
            if (Package != null)
            {
                WebPackage.txtCantidadXBulto.Text = Package.CantidadXBulto.ToString("f");
                WebPackage.txtCantidadXBulto.ID = "txtCantidadXBulto";
                WebPackage.Controls.Add(WebPackage.txtCantidadXBulto);
            }
        }
    }
}
